<template>
  <div class="recommendview">
    <div v-for="item in recommends" :key="item.id">
      <a :href="item.link">
        <img :src="item.image" alt="" />
        <div>{{ item.title }}</div>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  name: "RecommendView",
  data() {
    return {};
  },
  props: {
    recommends: {
      type: Array,
      default() {
        return [];
      },
    },
  },
  components: {},
};
</script>

<style  scoped>
.recommendview {
  display: flex;
  font-size: 12px;
  text-align: center;
  width: 100%;
  padding: 10px 0px;
  border-bottom: 8px solid rgb(236, 236, 236);
}
.recommendview > div {
  display: flex;
  flex: 1;
  justify-content: center;
}
img {
  width: 85%;
  margin-bottom: 7px;
}
</style>
